/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package logica;

/**
 *
 * @author root
 */

import java.util.Comparator;

public class ComparadorCosto implements Comparator<Nodo>{
    
    public int compare(Nodo x, Nodo y){

        if ( x.getCosto() < y.getCosto() ){
            return -1;
        }

        if ( x.getCosto() > y.getCosto() ){
            return 1;
        }
        
        return 0;
    }
}
